<?php

namespace app\admin\controller;

use think\Controller;

class Index extends Controller
//class Index
{
    public function index()
    {
//        return 'ADMIN/index/index';
//        $this->assign('title', 'TP5后台');
//        return $this->fetch();

        return view('index/index',['title'=>'后台首页']);
    }

    public function jump()
    {
//        $this->success('添加成功~', url('admin/index/index'));
        $this->error('添加失败~', url('admin/index/index'));
    }

    public function rd()
    {
//        $this->redirect('index/index/index');
//        $this->redirect('index/index/user', ['id'=>'99']);
        $this->redirect('http://www.acfun.cn');
    }
}

